package com.wxtech.heartbeat.server.protocol;


/**
 * 
字节地址号	字节内容	字节长度
1	心跳信息0x02(心跳标识)	1
2	消息包的长度0x01	1
3	标号0x00	1
4	标号0x01	1
5	设备ID （u64）	8
13	年(u8)	1
14	月(u8)	1
15	日(u8)	1
16	小时(u8)	1
17	分钟(u8)	1
18	秒(u8)	1
19-38	Sim卡号(20个字符char)	20
39-46	表体序列号ID（u64）	8
47	数据帧CRC校验高字节(u8)	1
48	数据帧CRC校验低字节(u8)	1
 *
 */
public class HeartBeatProtocolConstant {
//	public static final String HEART_BEAT_CMD = "02";	
	public static final int TOTAL_LENGTH = 48;
	public static final String HEART_BEAT_CMD_HEX = "02";
	public static final String BIAOHAO = "00 01";
	
//	public static final int POS_OF_MSG_ID = 0;
	public static final int POS_OF_TOTAL = 1;
	public static final int POS_OF_BIAOHAO = 2;
	public static final int POS_OF_DEVICE = 4;
	public static final int POS_OF_BEATTIME = 12;
	public static final int POS_OF_SIM = 18;
	public static final int POS_OF_SERIAL = 38;

	public static final int LENGTH_SIM = 20;
	public static final int LENGTH_DEVICEID = 8;
	public static final int LENGTH_SERIAL = 8;
	public static final int LENGTH_BEATTIME = 6;
}
